﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Soundteller.Audio.Tests.Unit.Services.BeatCalculatorSpecifications
{
    [TestClass]
    public class WhenCalculateGivenTimeIsZeroAndBpmIsZero : BeatCalculatorTestBase
    {
        protected override TimeSpan Time
        {
            get { return new TimeSpan(); }
        }

        protected override double Bpm
        {
            get { return 0; }
        }

        [TestMethod]
        public void ThenBeatShouldBeZero()
        {
            Assert.AreEqual(0, Result);
        }
    }

    [TestClass]
    public class WhenCalculateGivenTimeIsOneSecondAndBpmIsSixty : BeatCalculatorTestBase
    {
        protected override TimeSpan Time
        {
            get { return new TimeSpan(0, 0, 1); }
        }

        protected override double Bpm
        {
            get { return 60; }
        }

        [TestMethod]
        public void ThenBeatShouldBeOne()
        {
            Assert.AreEqual(1, Result);
        }
    }
}